//
//  UIAlertController+SMCategory.m
//  ZhiBo
//
//  Created by huangtie on 2017/11/21.
//  Copyright © 2017年 huangtie. All rights reserved.
//

#import "UIAlertController+SMCategory.h"
#import "ZBAppDelegate.h"

@implementation UIAlertController (SMCategory)

- (BOOL)shouldAutorotate
{
    ZBAppDelegate *delegate = (ZBAppDelegate *)[UIApplication sharedApplication].delegate;
    return delegate.allowRotate;
}  

@end
